<template>
	<view class="person_data">
		<view class="header">
			<view class="header-name">考试名称</view>
			<view class="header-score">成绩(分)</view>
			<view class="header-rank">全校排名(名)</view>
			<view class="header-analysis">分析</view>
		</view>
		<exam-rank-item v-for="(item,index) in dataList" :key='index' :itemData="item"></exam-rank-item>
	</view>
</template>

<script>
	import ExamRankItem from './ExamRankItem';
	export default {
		components:{
			ExamRankItem
		},
		props: {
			dataList: {
				type: Array,
				default: function() {
					return []
				}
			}
		},
		data() {
			return {}
		},
		watch: {},
		methods: {}
	}
</script>

<style lang="scss" scoped>

	.header {
		font-size: 24upx;
		color: #ffffff;
		height: 60upx;
		line-height: 60upx;
		background-color: #5ea1f8;
		border-radius: 8upx;

		&-name {
			display: inline-block;
			width: 35%;
			padding-left: 20upx;
		}

		&-score {
			display: inline-block;
			width: 20%;
		}

		&-rank {
			display: inline-block;
			width: 20%;
		}

		&-analysis {
			text-align: center;
			display: inline-block;
			width: 25%;
		}
	}
</style>
